from django.db import models


class NoteDir(models.Model):
    """笔记目录模型类"""
    title = models.CharField('目录名称', max_length=20)
    user_id = models.IntegerField('用户ID')
    create_time = models.DateTimeField('创建时间', auto_now_add=True)
    is_delete = models.BooleanField('是否被删除', default=False)

    class Meta:
        db_table = 'note_dir'
